import request from '@/utils/request'

// 查询实时客流洞察列表
export function listTouristInsight(query) {
  return request({
    url: '/app/touristInsight/list',
    method: 'get',
    params: query
  })
}

// 查询实时客流洞察详细
export function getTouristInsight(id) {
  return request({
    url: '/app/touristInsight/' + id,
    method: 'get'
  })
}

// 新增实时客流洞察
export function addTouristInsight(data) {
  return request({
    url: '/app/touristInsight',
    method: 'post',
    data: data
  })
}

// 修改实时客流洞察
export function updateTouristInsight(data) {
  return request({
    url: '/app/touristInsight',
    method: 'put',
    data: data
  })
}

// 删除实时客流洞察
export function delTouristInsight(id) {
  return request({
    url: '/app/touristInsight/' + id,
    method: 'delete'
  })
}
